// @Date         2021-11-08
// @Author       Aaron Zhang
// @Description   注册服务，
// @FileName      provider.go

package demo

import (
	"zin/framework"
)

type ProviderDemo struct {
}

func (d *ProviderDemo) Register(framework.Container) framework.NewInstance {
	return NewProviderServiceDemo
}

// boot负责配置初始化
func (d *ProviderDemo) Boot(framework.Container) error {
	return nil
}

//isDefer控制什么时候初始化
func (d *ProviderDemo) IsDefer() bool {
	return true
}

func (d *ProviderDemo) Params(params map[string]interface{}) map[string]interface{} {
	return params
}

func (d *ProviderDemo) Name() string {
	return ProviderKeyDemo
}
